package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import kotlin.Metadata;
import o.azb;
import o.cgz;
import o.eqx;
import o.ewm.d;
import o.fsd;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {1, 0, 3}, d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0003\b\u0016\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0016\u0010\u000b\u001a\u0006\u0012\u0002\b\u00030\f2\b\u0010\r\u001a\u0004\u0018\u00010\u000eH\u0016J\b\u0010\u000f\u001a\u00020\u0010H\u0014J\b\u0010\u0011\u001a\u00020\u0010H\u0014J\b\u0010\u0012\u001a\u00020\u0010H\u0014J\b\u0010\u0013\u001a\u00020\u0006H\u0014J\b\u0010\u0014\u001a\u00020\u0015H\u0016J\u000e\u0010\u0016\u001a\u00020\u00152\u0006\u0010\u0017\u001a\u00020\u0010R\u001a\u0010\u0005\u001a\u00020\u0006X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0007\u0010\b\"\u0004\b\t\u0010\n¨\u0006\u0018"}, d2 = {"Lcom/huawei/appmarket/service/store/awk/card/SmallHorizontalAppListSingleItemCard;", "Lcom/huawei/appmarket/service/store/awk/card/NormalCard;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "showDividerLine", "", "getShowDividerLine", "()Z", "setShowDividerLine", "(Z)V", "bindCard", "Lcom/huawei/appgallery/foundation/ui/framework/cardframe/card/BaseCard;", "parent", "Landroid/view/View;", "getAppIconWidth", "", "getCardMarginEnd", "getCardMarginStart", "isDivideLineVisiable", "setIcon", "", "setVisibility", "visible", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
public class SmallHorizontalAppListSingleItemCard extends NormalCard {
    private boolean ʻ = true;

    public SmallHorizontalAppListSingleItemCard(@NotNull Context context) {
        fsd.ˊ((Object) context, "context");
        super(context);
    }

    public final void ॱ(boolean z) {
        this.ʻ = z;
    }

    public final void ˏ(int i) {
        View ˉ = ˉ();
        if (ˉ != null) {
            ˉ.setVisibility(i);
        }
    }

    @NotNull
    public cgz<?> ˏ(@Nullable View view) {
        super.ˏ(view);
        azb.ॱॱ(this.ᐝ, 0);
        return this;
    }

    public boolean ˊᐝ() {
        return this.ʻ;
    }

    protected int ˊ() {
        return 0;
    }

    protected int ˋ() {
        return 0;
    }

    protected int ʼ() {
        Context context = this.ʼॱ;
        fsd.ॱ(context, "mContext");
        return context.getResources().getDimensionPixelSize(d.ʼ);
    }

    public void w_() {
        CardBean cardBean = this.ˊᐝ;
        fsd.ॱ(cardBean, "bean");
        if (TextUtils.isEmpty(cardBean.ॱˑ())) {
            ImageView imageView = this.ʽॱ;
            CardBean cardBean2 = this.ˊᐝ;
            fsd.ॱ(cardBean2, "bean");
            eqx.ˏ(imageView, cardBean2.ॱˌ(), "app_default_icon");
            return;
        }
        this = this;
        imageView = this.ʽॱ;
        cardBean2 = this.ˊᐝ;
        fsd.ॱ(cardBean2, "bean");
        eqx.ॱ(imageView, cardBean2.ॱˑ(), "app_default_icon");
    }
}
